.PHONY:all
all:cal_client cal_server 

cal_client:cal_client.cpp -ljsoncpp
	g++ -o $@ $^ -std=c++11 

cal_server:cal_server.cpp
	g++ -o $@ $^ -std=c++11 -lpthread -ljsoncpp

.PHONY:clean
clean:
	rm -f cal_client cal_server 